//
//  NSMutableArray+PACAMutableArray.m
//  iki
//
//  Created by rainimute on 16/12/15.
//  Copyright © 2016年 你问我答. All rights reserved.
//

#import "NSMutableArray+PACAMutableArray.h"

@implementation NSMutableArray (PACAMutableArray)

- (void)PACA_RemoveObjectAtIndex:(NSInteger)index{
    if (index>=self.count) {
        
        return;
    }
    [self removeObjectAtIndex:index];
}

- (void)PACA_RemoveObject:(id)object{
    if ([self containsObject:object]) {
        [self removeObject:object];
    }else{
    }
}

- (void)PACA_AddObject:(id)object{
    if (object) {
        [self addObject:object];
    }else{
    }
}

@end
